package com.eight.travel.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eight.travel.pojo.Place;
import com.eight.travel.pojo.PlaceOrder;
import org.springframework.context.annotation.Bean;

import java.util.List;

public interface PlaceOrderMapper extends BaseMapper<PlaceOrder> {
    //退订景区门票的订单
    int updateStatus(int status,int uid,int pid);

    //支付宝回调 修改状态为1
    int updateOrdersfortwo(int oid);

    //根据oid查询订单
    PlaceOrder findByoid(int oid);

    //根据uid查询已支付订单
    List<PlaceOrder> isOkOrder(int uid);

    //根据uid查询未支付订单
    List<PlaceOrder> isNoOrder(int uid);

    //查看已支付订单
    List<PlaceOrder> findAllOrdersok(int page,int size,int uid);

    //查看未支付订单
    List<PlaceOrder> findAllOrdersno(int page,int size,int uid);

    //已支付订单数
    List<PlaceOrder> countok(int uid);

    //未支付全部订单数
    List<PlaceOrder> countno(int uid);
}
